# 零，定义一个空的数组
# 一，遍历所有号码
# 二，对每一个号码，定义一个数字数组，遍历其中每一位的字符
# 三，如果该字符是数字，则加入到数字数组中，不是数字，则直接忽略
# 四，将数字数组转换为一个号码，加入到第零步的数组中


string = '''13367663107,14907936085,15326287802,17357050227,17714328898,18085519624,18178525609,18976105830,19068888125,19124947754,19342866203,19901122493,13001030066,13110215911,13224811099,14544284723,15557059579,15654793680,16675102173,16759295141,17199337709,17557931772,17669259024,1856a6219552,18601884728,19631242226,13422472144,135p77772318,13615818023,13706435098,13837933001,13982176275,14473131512,14776264539,14859418814,15056812736,15132178017,15264848531,15776358373,15882476322,15904d585125,17262275765,17815489245,18294379230,18363430217,18426589465,18727185556,18807706027,19508742824,19754733494,19881774254,17026615234,174485a58967'''

numbers = string.split(',')

big_list = []

for i in numbers:
    small_list = []
    for j in i:
        if j.isdigit():
            small_list.append(j)
    phone = ''.join(str(x) for x in small_list)
    big_list.append(phone)


print(big_list)
